package com.shangguigu.hashtable;

import lombok.Builder;
import lombok.ToString;

/**
 * @author: ZhouBert
 * @date: 2019/10/17
 * @description:
 */
@ToString
@Builder
public class Employee {

	private Integer id;
	private String name;
	private String address;

	@Override
	public int hashCode() {
		int result = 17;
		result = 31 * result + (id == null ? 0 : id.hashCode());
		result = 31 * result + (name == null ? 0 : name.hashCode());
		result = 31 * result + (address == null ? 0 : address.hashCode());
		return result;
	}
}
